package DesignPattern.Builder.Singleton.Lazy;

import Utils.Util;

public class Client {
    public static void main(String[] args) {
        LazyNotSafe instance1 = LazyNotSafe.getInstance();
        LazyNotSafe instance2 = LazyNotSafe.getInstance();
        System.out.println(instance1 == instance2);

        Util.divide();

        LazyBiLock instance3 = LazyBiLock.getInstance();
        LazyBiLock instance4 = LazyBiLock.getInstance();
        System.out.println(instance3 == instance4);

        Util.divide();

        LazyStaticClass instance5 = LazyStaticClass.getInstance();
        LazyStaticClass instance6 = LazyStaticClass.getInstance();
        System.out.println(instance5 == instance6);
    }
}
